<div>
    <table>
        <thead>
            <tr>
                <th>#</th>
                <th>User</th>
                <th>Point</th>
                <th>Update Time</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            {% for test in tests %}
            <tr>
                <td>{{loop.index}}</td>
                <td>{{test['user'] ? test['user'] : ''}}</td>
                <td>{{test['result'] ~ '/'}}<?php echo count(explode(',', $exercise->questions))?></td>
                <td>{{date('Y-m-d H:i:s', test['updatedTime'])}}</td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
</div>